<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // setInterval(function (){
        //     console.log('一秒执行一次');
        // }, 1000)
        // function fn(){
        //     console.log('执行');
        // }
        // let n = setInterval(fn,1000)
        // clearInterval(n)
        let i = 1
        setInterval(function(){
            i++
            document.write(i)
        },200)
    </script>
</body>
</html>